import store from '@/store'


export default {
  inserted(el, binding, vnode) {
    const { value } = binding

    if(store.state.user.id === 1 || store.state.user.name === 'admin') {
      return
    }
    if(store.state.user.id == value) {
      return
    }
    el.parentNode && el.parentNode.removeChild(el)

  }
}
